home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000180_icon-group-sender _Fri Aug 9 08:49:16 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 12 Aug 1996 08:17:10 MST
  2. Date: Fri, 9 Aug 1996 08:49:16 -0500
  3. From: jeffery@dragon.cs.utsa.edu (Clinton Jeffery)
  4. Message-Id: <9608091349.AA24649@water.cs.utsa.edu>
  5. To: cdt@post.its.mcw.edu
  6. Cc: icon-group@cs.arizona.edu
  7. In-Reply-To: <Pine.ULT.3.90.960808145431.22371A-100000@post.its.mcw.edu> (cdt@post.its.mcw.edu)
  8. Subject: Re: CGI Tips
  9. Content-Length: 1194
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11. Status: O
  12.  
  13. [Chris Tenaglia posted a CGI scripting question.]
  14.  
  15. Well, one tip I think I have for you is that I don't think the name=fred part
  16. comes to your program as a command line argument, I think it comes via an
  17. environment variable ("name") being set to a value ("fred").
  18.  
  19. But there is something more basic you are up against before you get to that
  20. point, since your Icon program is never running.  Perhaps your httphome
  21. program or your iconx interpreter isn't set to allow everyone to execute it;
  22. CGI scripts are executed by a web server process; usually its userid and
  23. permissions are different than any regular user.  Or, depending on how your
  24. web server is configured, its conceivable that the iconx binary might need
  25. to be in the cgi-bin directory (that one is a long shot).  Also, the "path"
  26. and environment variables (such as ICONX) you use won't be present
  27. when the web server process tries to execute your script, so you may
  28. need to give explicit paths.  Lastly, if you try to do this whole CGI
  29. thing based on local files read using a web browser, it won't work; the
  30. CGI mechanism really depends on using a web server and interprocess
  31. communication, which makes it a pain to test and setup.
  32.  
  33.  
  34.